import './assets/main.css'
import 'normalize.css/normalize.css'

import { createApp } from 'vue'
import App from './App.vue'



//引入路由
import router from '@/router'

//引入Vuex
import store from "@/store"
//引入图表集
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
//引入i18n
import i18n from './i18n'
// 引入 mock
import './mock'

import CmTable from "@/components/CmTable.vue";

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component, CmTable.name, CmTable)
}


// app.component(CmTable.name, CmTable);
//挂载路由
app.use(router)
//挂载Vuex
app.use(store)
//挂载i18n
app.use(i18n)

app.mount('#app')
